num = range(1, 10)
lists = list(num)
print(lists)
for i in lists:
    print(i)
else:
    print('循环结束')
print('————————————————————')

# list
lists2 = [1, 2, 3, 4, '393', '王朝', '...', 'python']
for i in lists2:
    print(i)
    # print(lists2[i]) 报错
print('————————————————————')

# tuple
lists3 = (1, 2, 3, 4, 5, '393', '王朝', '...', 'python')
for i in lists3:
    print(i)
print('————————————————————')

# dict for...in 的 i 是键
lists4 = {1: 1, 2: 2, 3: 3, 4: 44, 'name': '王朝', 'symbol': '...', 'language': 'python'}
for i in lists4:
    print(i)
print('————————————————————')
for i in lists4:
    print(lists4[i])
print('————————————————————')
